import request from '@/config/axios'
/**
 * 分页查询办公区
 */
export const pageQuery = (params) => {
  return request.get({ url: '/area/office-area-class/page-query', params })
}

/**
 * 新增办公区分类
 */
export const create = (data) => {
  return request.post({ url: '/area/office-area-class/create', data })
}

/**
 * 更新办公区分类
 */
export const update = (data) => {
  return request.put({ url: '/area/office-area-class/update', data })
}

/**
 * 获取单个办公区分类
 */
export const singleGet = (id) => {
  return request.get({ url: '/area/office-area-class/single-get?id=' + id })
}

/**
 * 查询办公区分类
 */
export const listQuery = () => {
  return request.get({ url: '/area/office-area-class/list-query' })
}
